<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
  <title>后台管理系统</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="/resources/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/bui-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/page-min.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="container">

  <form id="searchForm" class="form-horizontal">
    <%--<div class="row">
      <div class="control-group span8">
        <label class="control-label">登录名：</label>
        <div class="controls">
          <input type="text" class="control-text" name="loginName">
        </div>
      </div>

      <div class="control-group span8">
        <label class="control-label">状态：</label>
        <div class="controls" >
          <select name="status" id="" >
              <option value="">--全部--</option>
            <option value="NORMAL">正常</option>
            <option value="FROZEN">冻结</option>
          </select>
        </div>
      </div>
      <div class="span3 offset2">
        <button  type="button" id="btnSearch" class="button button-primary">搜索</button>
      </div>
    </div>--%>
      <input type="hidden" name="type" value="${type}"/>
      <input type="hidden" name="status" value="${status}"/>
      <input type="hidden" name="startDate" value="${startDate}"/>
      <input type="hidden" name="endDate" value="${endDate}"/>
      <input type="hidden" name="province" value="${province}"/>
      <input type="hidden" name="city" value="${city}"/>
      <input type="hidden" name="area" value="${area}"/>
        <a href="javascript:void(0);" onclick="back()">返回</a>
  </form>

  <div class="search-grid-container">
    <div id="grid"></div>
  </div>
</div>

<script type="text/javascript" src="/resources/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="/resources/js/bui-min.js"></script>
<script type="text/javascript" src="/resources/js/config-min.js"></script>
<script type="text/javascript">
    var store,gridCfg;
  BUI.use(['common/search','common/page','bui/grid','bui/overlay','bui/form'],function (Search,Page,Grid,Overlay,Form) {
    var  columns = [
                {title:'订单号',dataIndex:'no',width:150},
                {title:'消费者昵称',dataIndex:'memberAccount',width:100},
                {title:'收货人',dataIndex:'userName',width:100},
                {title:'订单状态',dataIndex:'status',width:120,renderer:function(value,obj){
                    if(obj.status=='Create'){
                        return "待支付";
                    }else if(obj.status=='Pay'){
                        return "支付成功,待发货";
                    }else if(obj.status=='Fail'){
                        return "支付失败";
                    }else if(obj.status=='Send'){
                        return "已发货";
                    }else if(obj.status=='Suc'){
                        return "已完成";
                    }else if(obj.status=='Close'){
                        return "已关闭";
                    }
                }},
                {title:'订单金额',dataIndex:'totalMoney',width:120},
                {title:'订单时间',dataIndex:'dateStr',width:150}
            ];
            store = Search.createStore('/showOrderDetailsData');
            gridCfg = Search.createGridCfg(columns,{
              plugins : [BUI.Grid.Plugins.CheckSelection] // 插件形式引入多选表格
            });
  });
</script>
<script type="text/javascript" src="/views/js/list.js"></script>
<script type="text/javascript">
    function back(){
        top.topManager.openPage({
            id : 'main_menu',
            isClose : true
        });
    }
</script>
</body>
</html>  
